home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / wdj0797.zip / ZOLMAN.ZIP / MYSPLI~1.CPP < prev    next >
C/C++ Source or Header  |  1996-11-18  |  3KB  |  112 lines

  1. // MySplitterView.cpp : implementation of the CMySplitterView class
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "MySplitter.h"
  6.  
  7. #include "MySplitterDoc.h"
  8. #include "MySplitterView.h"
  9.  
  10. #ifdef _DEBUG
  11. #define new DEBUG_NEW
  12. #undef THIS_FILE
  13. static char THIS_FILE[] = __FILE__;
  14. #endif
  15.  
  16. /////////////////////////////////////////////////////////////////////////////
  17. // CMySplitterView
  18.  
  19. IMPLEMENT_DYNCREATE(CMySplitterView, CFormView)
  20.  
  21. BEGIN_MESSAGE_MAP(CMySplitterView, CFormView)
  22.     //{{AFX_MSG_MAP(CMySplitterView)
  23.         // NOTE - the ClassWizard will add and remove mapping macros here.
  24.         //    DO NOT EDIT what you see in these blocks of generated code!
  25.     //}}AFX_MSG_MAP
  26.     // Standard printing commands
  27.     ON_COMMAND(ID_FILE_PRINT, CFormView::OnFilePrint)
  28.     ON_COMMAND(ID_FILE_PRINT_DIRECT, CFormView::OnFilePrint)
  29.     ON_COMMAND(ID_FILE_PRINT_PREVIEW, CFormView::OnFilePrintPreview)
  30. END_MESSAGE_MAP()
  31.  
  32. /////////////////////////////////////////////////////////////////////////////
  33. // CMySplitterView construction/destruction
  34.  
  35. CMySplitterView::CMySplitterView()
  36.     : CFormView(CMySplitterView::IDD)
  37. {
  38.     //{{AFX_DATA_INIT(CMySplitterView)
  39.         // NOTE: the ClassWizard will add member initialization here
  40.     //}}AFX_DATA_INIT
  41.     // TODO: add construction code here
  42.  
  43. }
  44.  
  45. CMySplitterView::~CMySplitterView()
  46. {
  47. }
  48.  
  49. void CMySplitterView::DoDataExchange(CDataExchange* pDX)
  50. {
  51.     CFormView::DoDataExchange(pDX);
  52.     //{{AFX_DATA_MAP(CMySplitterView)
  53.         // NOTE: the ClassWizard will add DDX and DDV calls here
  54.     //}}AFX_DATA_MAP
  55. }
  56.  
  57. BOOL CMySplitterView::PreCreateWindow(CREATESTRUCT& cs)
  58. {
  59.     // TODO: Modify the Window class or styles here by modifying
  60.     //  the CREATESTRUCT cs
  61.  
  62.     return CFormView::PreCreateWindow(cs);
  63. }
  64.  
  65. /////////////////////////////////////////////////////////////////////////////
  66. // CMySplitterView printing
  67.  
  68. BOOL CMySplitterView::OnPreparePrinting(CPrintInfo* pInfo)
  69. {
  70.     // default preparation
  71.     return DoPreparePrinting(pInfo);
  72. }
  73.  
  74. void CMySplitterView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
  75. {
  76.     // TODO: add extra initialization before printing
  77. }
  78.  
  79. void CMySplitterView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
  80. {
  81.     // TODO: add cleanup after printing
  82. }
  83.  
  84. void CMySplitterView::OnPrint(CDC* pDC, CPrintInfo*)
  85. {
  86.     // TODO: add code to print the controls
  87. }
  88.  
  89. /////////////////////////////////////////////////////////////////////////////
  90. // CMySplitterView diagnostics
  91.  
  92. #ifdef _DEBUG
  93. void CMySplitterView::AssertValid() const
  94. {
  95.     CFormView::AssertValid();
  96. }
  97.  
  98. void CMySplitterView::Dump(CDumpContext& dc) const
  99. {
  100.     CFormView::Dump(dc);
  101. }
  102.  
  103. CMySplitterDoc* CMySplitterView::GetDocument() // non-debug version is inline
  104. {
  105.     ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMySplitterDoc)));
  106.     return (CMySplitterDoc*)m_pDocument;
  107. }
  108. #endif //_DEBUG
  109.  
  110. /////////////////////////////////////////////////////////////////////////////
  111. // CMySplitterView message handlers
  112.